package cn.framelife.rainbow.ui.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 树节点实体类
 * @author pgwei
 *
 */
public class TreeNode {
	/**
	 * id为1是connectioName,2是databaseName,3是tableName
	 */
	private Integer id;
	private String name;
	private List<TreeNode> children = new ArrayList<TreeNode>();
	
	public TreeNode(String name){
		this.name = name;
	}

	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

}
